#ifndef __SERIAL_H
#define __SERIAL_H

#include <stdio.h>
#define USART_DEBUG		USART1
extern char Serial_RxPacket[];
extern uint8_t Serial_RxFlag;

void Serial_Init(void);
void Serial_SendByte(uint8_t Byte);
void Serial_SendArray(uint8_t *Array, uint16_t Length);
void Serial_SendString(char *String);
void Serial_SendNumber(uint32_t Number, uint8_t Length);
void Serial_Printf(char *format, ...);
void UsartPrintf(USART_TypeDef *USARTx, char *fmt,...);
void Usart1_Init(unsigned int baud);
void Usart2_Init(unsigned int baud);
	void Usart_SendString(USART_TypeDef *USARTx, unsigned char *str, unsigned short len);
#endif
